<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="../js/vue.js"></script>
    <title>初始Vue</title>
</head>

<body>
<div id="root">
    <h1>插值语法</h1>
    <h3>Hello,{{name}}</h3>
    <hr>
    <h1>指令语法</h1>
    <a :href="url" target="_blank">百度</a>
    <a :href="url1" target="_blank">谷歌</a>
</div>
</body>

<script type="text/javascript">
    //关闭提示
    Vue.config.productionTip = true;


    //创建Vue实例
    new Vue({
        //指定容器
        el: '#root',
        //data用于存储数据
        data: {
            name: 'HomLi',
            url: 'http://www.baidu.com',
            url1: 'https://www.bilibili.com/'
        }
    });
</script>
</html>